package com.peter.proxy.hkgolden.core;

import com.google.inject.AbstractModule;
import com.peter.framework.service.urlfetch.GoogleLLHttpService;
import com.peter.framework.service.urlfetch.HttpService;
import com.peter.proxy.hkgolden.api.ContentService;
import com.peter.proxy.hkgolden.api.ContentServiceImpl;

public class ApplicationModule extends AbstractModule {
	@Override
	protected void configure() {
		System.setProperty("http.proxyHost", "proxy.hkcsl.net");
		System.setProperty("http.proxyPort", "8080");

		bind(HttpService.class).to(GoogleLLHttpService.class);
		bind(ContentService.class).to(ContentServiceImpl.class);
	}
}
